package com.cookor.poi.modules.phy.service;

import com.cookor.poi.common.persistence.DataEntity;
import com.cookor.poi.common.persistence.Page;
import com.cookor.poi.common.service.CrudService;
import com.cookor.poi.modules.phy.dao.TWeixinUserDao;
import com.cookor.poi.modules.phy.entity.TWeixinUser;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(readOnly = true)
public class TWeixinUserService extends CrudService<TWeixinUserDao, TWeixinUser> {
  public TWeixinUser get(String id) {
    return (TWeixinUser)super.get(id);
  }
  
  public List<TWeixinUser> findList(TWeixinUser tWeixinUser) {
    return super.findList( tWeixinUser);
  }
  
  public Page<TWeixinUser> findPage(Page<TWeixinUser> page, TWeixinUser tWeixinUser) {
    return super.findPage(page,  tWeixinUser);
  }
  
  @Transactional(readOnly = false)
  public void save(TWeixinUser tWeixinUser) {
    super.save( tWeixinUser);
  }
  
  @Transactional(readOnly = false)
  public void delete(TWeixinUser tWeixinUser) {
    super.delete( tWeixinUser);
  }
  
  public TWeixinUser getByOpenId(String openId) {
    return ((TWeixinUserDao)this.dao).getByOpenId(openId);
  }
}
